package cn.yoyo.service;

import cn.yoyo.entity.*;

import java.util.List;
import java.util.Map;

public interface OrderService {
    public int add(List<Item> items);

    public List<OrderLine> findOrderLines(Integer start, Integer num);

    public List<Order> findOrdLineByPage(Map<String, Object> map);

    public List<ItemBook> findInfoByOrdid(Integer ordid);

    public int addAddress(String address, String phone, Integer ordid);

    public int addPay(Integer ordid);

    public OrderInfo findItemInfoByOrdid(Integer orderid);

    public int send(Map<String, Object> map);

    public List<OrderLine> findOrderByInfo(Map<String, Object> map);

    public int getTotal(Map<String, Object> map);
}
